import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
import { Home, Accounts, AccountCode } from 'pages/index';
import Core from 'containers/Common/Core';

class App extends Component {
  render() {
    return (
      <Router>
        <React.Fragment>
          <Core />
          <Route exact path="/" component={Home} />
          <Route exact path="/about/" component={Home} />

          <Route exact path="/pay" component={Accounts}>
            <Route exact path="/accounts/" component={Accounts} />
            <Route path="/account/:code" component={Home} />
          </Route>
          <Route path="/users/" component={Home} />
        </React.Fragment>
      </Router>
    );
  }
}

export default App;
